

jQuery(document).ready(function() {

	

	$.ajax({
		url : 'cargaTransition', // action to be perform
		dataType : 'html',
		success : function(html) {
			;
			$('#contenidoInformacion').html(html); // set result.jsp output to leftDiv
		},
		error : function(xhr, ajaxOptions, thrownError) {
			alert('An error occurred! ' + thrownError);
		},
	});

	$('#implements').click(function() {
		$.ajax({
			url : 'implement', // action to be perform
			type : 'GET',
			data : {
				direccionAction : '7'
			},
			dataType : 'html',
			success : function(html) {
				$('#contenidoInformacion').html(html); // set result.jsp output to leftDiv
			},
			error : function(xhr, ajaxOptions, thrownError) {
				alert('An error occurred! ' + thrownError);
			},
		});
		$('#transitions').removeClass("active");
		$('#implements').addClass("active");
	});

	$('#transitions').click(function() {
		$('#contenidoInformacion').empty();
		$.ajax({
			url : 'cargaTransition', // action to be perform
			type:'GET',
			dataType : 'html',
			success : function(html) {
				
				$('#contenidoInformacion').html(html); // set result.jsp output to leftDiv
			},
			error : function(xhr, ajaxOptions, thrownError) {
				alert('An error occurred! ' + thrownError);
			},
		});
		$('#implements').removeClass("active");
		$('#transitions').addClass("active");
	});
	
//	Accion para Foro
	$('#foro').click(function() {
		$.ajax({
			url : 'foro', // action to be perform

			dataType : 'html',
			success : function(html) {
				$('#contenidoInformacion').html(html); // set result.jsp output to leftDiv
			},
			error : function(xhr, ajaxOptions, thrownError) {
				alert('An error occurred! ' + thrownError);
			},
		});
		$('#implements').removeClass("active");
		$('#foro').addClass("active");
	});
	
	
	
//	accion para COP
	
	$('#cop').click(function() {
		$.ajax({
			url : 'cop', // action to be perform
			data : {
				exportar : false
			},
			dataType : 'html',
			success : function(html) {
				$('#contenidoInformacion').html(html); // set result.jsp output to leftDiv
			},
			error : function(xhr, ajaxOptions, thrownError) {
				alert('An error occurred! ' + thrownError);
			},
		});
		$('#implements').removeClass("active");
		$('#foro').addClass("active");
	});

});
